package com.cunyme;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class Skipmenu extends Activity
{
	 @Override
	    public void onCreate(Bundle savedInstanceState)
	    {
	        super.onCreate(savedInstanceState);
		 	setContentView(R.layout.skipmenu);
	        Button myNewsButton = (Button)findViewById(R.id.news_forum_button);
	        Button myForumButton = (Button)findViewById(R.id.forum_button);
	        
	        myNewsButton.setOnClickListener(myNewsButtonListener);
	        myForumButton.setOnClickListener(myForumButtonListener);
	        
	        
	    }
	    OnClickListener myNewsButtonListener = new OnClickListener()
	    {

			public void onClick(View v) {
				// TODO Auto-generated method stub
				  Intent gotoNews = new Intent(Skipmenu.this, News.class);
				  startActivity(gotoNews);
			}
	    	
	    };
	    OnClickListener myForumButtonListener = new OnClickListener()
	    {
			public void onClick(View v) {
				// TODO Auto-generated method stub
				  Intent gotoForum = new Intent(Skipmenu.this, Forum.class);
				  startActivity(gotoForum);
			}
	    };
}
